package cn.wolfcode.luowowo.comment.repository;

import cn.wolfcode.luowowo.comment.domain.CommunityAnswer;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

@Service
public interface CommunityAnswerRepository extends MongoRepository<CommunityAnswer,String> {

    Page<CommunityAnswer> findByDetailId(Long detailId, PageRequest pageRequest);

}
